﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="admin_css/adminstyle.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div  class="login">
        <div class="tableHead" style="width:100%;">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/image/security.png" 
                Width="24px" />管理员登录</div>
        <table>
            <tr>
                <td style="padding-left:10px;">
                    <asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label>
               </td>
               <td>
                   <asp:TextBox ID="userNameTextBox" runat="server" Width="210px"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                       ErrorMessage="!" ControlToValidate="userNameTextBox"></asp:RequiredFieldValidator>
               </td>
            </tr>
            <tr>
                <td style="padding-left:10px;padding-top:15px;">
                    <asp:Label ID="Label2" runat="server" Text="密码:"></asp:Label>
                </td>
                <td style="padding-top:15px;">
                    <asp:TextBox ID="passwordTextBox" runat="server" TextMode="Password" 
                        Width="210px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="passwordTextBox" ErrorMessage="!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    
                </td>
                <td style="padding-left:160px;">
                    <asp:Button ID="loginButton" runat="server" Text="登录" 
                        onclick="loginButton_Click" CssClass="button" BackColor="Transparent" BorderStyle="None"/>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="messageLabel" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
